package com.itheima.restkeeper.face;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.restkeeper.TableAreaFace;
import com.itheima.restkeeper.req.TableAreaVo;
import com.itheima.restkeeper.service.ITableAreaService;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboService;
import org.apache.dubbo.config.annotation.Method;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * @ClassName TableAreaFaceImpl.java
 * @Description 桌台区域dubbo服务
 */
@Slf4j
@DubboService(version = "${dubbo.application.version}",timeout = 5000,
    methods ={
        @Method(name = "findTableAreaVoPage",retries = 2),
        @Method(name = "createTableArea",retries = 0),
        @Method(name = "updateTableArea",retries = 0),
        @Method(name = "deleteTableArea",retries = 0)
    })
public class TableAreaFaceImpl implements TableAreaFace {

    @Autowired
    ITableAreaService tableAreaService;

    @Override
    public Page<TableAreaVo> findTableAreaVoPage(TableAreaVo tableAreaVo, int pageNum, int pageSize) {
        //查询Page<TableArea>区域分页
        //转换Page<TableArea>为Page<TableAreaVo>
        //转换List<TableArea>为List<TableAreaVo>
        //返回分页结果
        return null;
    }

    @Override
    public TableAreaVo createTableArea(TableAreaVo tableAreaVo) {
        return null;
    }

    @Override
    public Boolean updateTableArea(TableAreaVo tableAreaVo) {
        return null;
    }

    @Override
    public Boolean deleteTableArea(String[] checkedIds) {
        return null;
    }

    @Override
    public TableAreaVo findTableAreaByTableAreaId(Long tableAreaId) {
        return null;
    }

    @Override
    public List<TableAreaVo> findTableAreaVoList() {
        return null;
    }
}
